<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="width:175px;height:auto;top:347px;left:212px;"
    onParamsReceive="modelParamsReceive" onLoad="modelLoad"> 
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="ID_LIST_Data" autoNew="false" idColumn="Batch"> 
      <column label="批次" name="Batch" type="String" xid="column14"/>  
      <column label="批次总数" name="BatchSum" type="Integer" xid="column21"/>  
      <column label="客户名称" name="CtmName" type="String" xid="column20"/>  
      <column label="客户编号" name="CtmNo" type="String" xid="column18"/>  
      <column label="发货日期" name="DateDelivery" type="String" xid="column25"/>  
      <column isCalculate="true" label="实际上传数量" name="FactSum" type="Integer"
        xid="column24"/>  
      <column label="明细ID" name="ID" type="Integer" xid="column23"/>  
      <column label="包装比例" name="PackingRatio" type="String" xid="column17"/>  
      <column label="计划发货数量" name="PrdCount" type="Integer" xid="column16"/>  
      <column label="产品名称" name="PrdName" type="String" xid="column15"/>  
      <column label="产品编号" name="PrdNo" type="String" xid="column22"/>  
      <column label="销售单号" name="SDCode" type="String" xid="column19"/>  
      <column label="主单ID" name="SDID" type="Integer" xid="column26"/>  
      <column label="反选" name="IsBool" type="Boolean" xid="xid1"/>  
      <rule xid="rule1">
   <col name="FactSum" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default1">$model.ReCount( $row.val(&quot;ID&quot;), $row.val(&quot;PackingRatio&quot;))</expr></calculate> </col> </rule></div>  
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="BarCode_Data" idColumn="code"> 
      <column label="主单ID" name="ID" type="Integer" xid="xid3"/>  
      <column label="条码" name="code" type="String" xid="xid4"/>  
      <column label="条码类型" name="Type" type="String" xid="xid5"/> 
    </div>  
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="PrdList_Data" idColumn="SubID"> 
      <column label="明细ID" name="ID" type="Integer" xid="xid2"/>  
      <column label="批次" name="Batch" type="String" xid="xid7"/>  
      <column label="是否正反选" name="IsBool" type="Integer" xid="xid8"/> 
    </div> 
  </div>  
  <div component="$UI/system/components/justep/contents/contents" class="x-contents x-full"
    active="0" xid="contents1"> 
    <div class="x-contents-content" xid="TaskDetailsCntent"> 
      <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
        xid="panel1"> 
        <div class="x-panel-top" xid="top1"> 
          <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
            xid="titleBar1"> 
            <div class="x-titlebar-left" xid="left1"> 
              <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon"
                xid="BackBtn" label="&lt;" icon="linear linear-chevronleft" onClick="BackBtnClick"> 
                <i xid="i10" class="linear linear-chevronleft"/>  
                <span xid="span9">&amp;lt;</span> 
              </a> 
            </div>  
            <div class="x-titlebar-title" xid="title1"><![CDATA[销售出库]]></div>  
            <div class="x-titlebar-right reverse" xid="right1" style="width:200px;"> 
              <a component="$UI/system/components/justep/button/button" class="btn btn-success"
                label="上传" xid="SendButton" onClick="SendButtonClick"> 
                <i xid="i1"/>  
                <span xid="span1">上传</span> 
              </a> 
            </div> 
          </div> 
        </div>  
        <div class="x-panel-content" xid="content1"> 
          <div component="$UI/system/components/justep/list/list" class="x-list"
            xid="list1" data="ID_LIST_Data"> 
            <ul class="x-list-template" xid="listTemplateUl1"> 
              <li xid="li1" style="border-bottom-style:dotted;border-bottom-color:#0080C0;"> 
                <div component="$UI/system/components/justep/row/row" class="x-row"
                  xid="row5"> 
                  <div class="x-col" xid="col12" style="background-color:#E1F0FF;"> 
                    <div component="$UI/system/components/justep/row/row" class="x-row"
                      xid="row2" style="padding:0px;margin:0px;height:25px;"> 
                      <div class="x-col x-col-fixed" xid="col5" style="width:auto;"> 
                        <label xid="label2" style="font-weight:bold;color:#003366;"><![CDATA[产品名称:]]></label> 
                      </div>  
                      <div class="x-col" xid="col3" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;"> 
                        <label xid="label4" bind-text="val(&quot;PrdName&quot;)">label</label> 
                      </div> 
                    </div>  
                    <div component="$UI/system/components/justep/row/row" class="x-row"
                      xid="row1" style="padding:0px;margin:0px;height:25px;"> 
                      <div class="x-col x-col-fixed" xid="col4" style="width:auto;"> 
                        <label xid="label5" style="font-weight:bold;color:#003366;"><![CDATA[产品批次:]]></label> 
                      </div>  
                      <div class="x-col" xid="col6" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;"> 
                        <label xid="label6" bind-text="val(&quot;Batch&quot;)">label</label> 
                      </div> 
                    </div>  
                    <div component="$UI/system/components/justep/row/row" class="x-row"
                      xid="row4" style="padding:0px;margin:0px;height:25px;"> 
                      <div class="x-col x-col-fixed" xid="col9" style="width:auto;"> 
                        <label xid="label7" style="font-weight:bold;color:#003366;"><![CDATA[包装比例:]]></label> 
                      </div>  
                      <div class="x-col" xid="col7" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;"> 
                        <label xid="label8" bind-text="val(&quot;PackingRatio&quot;)">label</label> 
                      </div>  
                      <div class="x-col x-col-fixed" xid="col10" style="width:auto;"> 
                        <label xid="label9" style="color:#003366;"><![CDATA[产品编号:]]></label> 
                      </div>  
                      <div class="x-col" xid="col11" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;"> 
                        <label xid="label10" bind-text="val(&quot;PrdNo&quot;)">label</label> 
                      </div> 
                    </div> 
                  </div> 
                </div>  
                <div component="$UI/system/components/justep/row/row" class="x-row"
                  xid="row3" style="padding-bottom:0px"> 
                  <div class="x-col" xid="col8"> 
                    <label class="x-label" xid="label3" style="color:#339966;padding:0px;margin:0px"><![CDATA[批次总数:]]></label>  
                    <label class="x-label" xid="label11" style="padding:0px;margin:0px;color:#339966;text-align:left;text-decoration:underline;"
                      bind-text="val(&quot;BatchSum&quot;)"><![CDATA[0]]></label>  
                    <label class="x-label" xid="label12" style="padding:0px;margin:0px; color:#339966;"><![CDATA[计划发货:]]></label>  
                    <label class="x-label" xid="label13" style="padding:0px;margin:0px;color:#339966;text-align:left;text-decoration:underline;"
                      bind-text="val(&quot;PrdCount&quot;)">0</label>  
                    <label class="x-label" xid="label15" style="padding:0px;margin:0px;color:#339966;"><![CDATA[已扫数量:]]></label>  
                    <label class="x-label" xid="label14" style="padding:0px;margin:0px;text-align:left;color:#FF0000;font-weight:bold;"
                      bind-text="val(&quot;FactSum&quot;)">0</label> 
                  </div> 
                </div>  
                <div component="$UI/system/components/justep/row/row" class="x-row"
                  xid="row6" style="padding:0px"> 
                  <div class="x-col x-col-fixed x-col-center" xid="col17" style="width:auto;"> 
                    <label xid="label22" bind-visible=" val(&quot;Batch&quot;).length &gt; 1"><![CDATA[反选条码]]></label> 
                  </div>  
                  <div class="x-col" xid="col18"> 
                    <span component="$UI/system/components/justep/button/toggle"
                      class="x-toggle x-toggle-sm" xid="toggle1" ON="开" OFF="关" type="checkbox"
                      checked="false" bind-visible=" val(&quot;Batch&quot;).length &gt; 1" bind-ref="ref(&quot;IsBool&quot;)"/> 
                  </div>  
                  <div class="x-col x-col-fixed x-col-center" xid="col16" style="text-align:right;width:auto;"> 
                    <a component="$UI/system/components/justep/button/button"
                      class="btn x-green btn-sm btn-icon-left " xid="button1" icon="e-commerce e-commerce-saomiao"
                      label="扫码" onClick="QRScan_ButtonClick"> 
                      <i xid="i2" class="e-commerce e-commerce-saomiao"/>  
                      <span xid="span2">扫码</span> 
                    </a> 
                  </div> 
                </div> 
              </li> 
            </ul> 
          </div> 
        </div>  
        <div class="x-panel-bottom" xid="bottom1"/> 
      </div> 
    </div>  
    <div class="x-contents-content" xid="ScanCodeContent"> 
      <div component="$UI/system/components/justep/windowContainer/windowContainer"
        class="x-window-container" xid="ScanCodeWindowContainer"/> 
    </div> 
  </div> 
</div>
